package com.kould.common.exception;


import com.kould.common.constant.ResultCode;

public class BaseException extends RuntimeException {

    private static final long serialVersionUID = 3506744187536228284L;

    private ResultCode errCode;
    private String errMsg;


    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public ResultCode getErrCode() {
        return errCode;
    }

    public void setErrCode(ResultCode errCode) {
        this.errCode = errCode;
    }

    public BaseException(ResultCode errCode, String errMsg) {
        this.errCode = errCode;
        this.errMsg = errMsg;
    }
}
